/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2020-2021. All rights reserved.
 * Description: Horovod Adapter API
 */

#ifndef HVD_ADAPTER_
#define HVD_ADAPTER_

#include <hccl/base.h>
#include <hccl/hccl_types.h>

namespace hccl {
using HvdCbDataProcessFunc = HcclResult (*)(void *fnData);

/**
 * @brief Add function to process fndata.
 * @param fn A hvdCbDataProcessFunc type function.
 * @return void
 */
extern void HcomRegHvdCallback(HvdCbDataProcessFunc fn);  // 注册处理回host侧数据的函数
}
#endif // HVD_ADAPTER_
